package top.lywivan.mm.dao;

import top.lywivan.mm.pojo.Catalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CatalogDao {

    Long findTotalCount(Catalog catalog);

    List<Catalog> findListByPage(@Param("offset") Integer offset,@Param("pageSize")  Integer pageSize, @Param("catalog") Catalog catalog);

    void addCatalog(Catalog catalog);

    void deleteCatalogById(Integer id);
}
